package com.ruoyi.hr.service.impl.welfare;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.hr.mapper.welfare.WelfareMapper;
import com.ruoyi.hr.service.welfare.WelfareService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WelfareServiceImpl implements WelfareService {

    @Autowired
    WelfareMapper welfareMapper;

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public int updateIslock(String id, String islock, String table) {
        return welfareMapper.updateIslock(id, islock, table);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public int updateIsDisabled(String id, String isDisabled, String table) {
        return welfareMapper.updateIsDisabled(id, isDisabled, table);
    }
}
